package com.wl.entity;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

// 支付请求DTO
@Data
public class PaymentRequest {
    @NotBlank(message = "订单号不能为空")
    private String outTradeNo;

    @NotBlank(message = "订单标题不能为空")
    private String subject;

    @NotNull(message = "订单金额不能为空")
    @DecimalMin(value = "0.01", message = "金额最小为0.01")
    private BigDecimal totalAmount;

    private String returnUrl; // 可选的回调URL
}